//
//  AppInfo.swift
//  OneMeeting
//
//  Created by zhangheng on 2019/8/13.
//  Copyright © 2019 www.zhangheng.com. All rights reserved.
//

import Foundation



class AppInfo: NSObject {
    class func info() -> [String:Any]? {
        return Bundle.main.infoDictionary
    }
    
    class func appDisplayName() -> String {
        return Bundle.main.infoDictionary!["CFBundleDisplayName"] as! String
    }
    
    class func majorVersion() -> String {
        return Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
    }
    
    class func minorVersion() -> String {
        return Bundle.main.infoDictionary!["CFBundleVersion"] as! String
    }
    
    class func name() -> String {
        var appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName")
        if appName == nil {
            appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleName")
        }
        return appName as! String
    }
    
  
}



